/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-04-07 10:10:05
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-05-09 11:46:30
 * @FilePath: /cdss-admin-web/src/views/dashboard/usePinlv.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import pinlvImg from '@/assets/images/dashboard/curve.png';
import { ref } from 'vue';

export const usePinlv = () => {
    const title = '平台简报';

    const chartOption = ref({
        xAxis: {
            type: 'category'
        },
        yAxis: { type: 'value' },
        grid: {
            left: 50,
            right: 30,
            bottom: 30
        },
        series: [
            {
                type: 'line',
                smooth: true
            }
        ]
    });

    const chartData = ref([
        ['1月', 820],
        ['2月', 932],
        ['3月', 901],
        ['4月', 934],
        ['5月', 1290],
        ['6月', 1330],
        ['7月', 1320]
    ]);

    return {
        title,
        pinlvImg,
        chartOption,
        chartData
        // list
    };
};
